﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterchitiet.master" AutoEventWireup="true" CodeFile="aocuoi.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <asp:DataList ID="DataList1" runat="server" DataKeyField="masp" 
         RepeatColumns="2">
        <ItemTemplate>
        <div class="hinhsp">
            <table class="style1">
                <tr>
                    <td>
                        <asp:Image ID="Image1" runat="server" ImageUrl='<%#"~/hinhsanpham/" + Eval("hinh") %>' Width="200px" Height="200px" ImageAlign="Left" />
                        <asp:Image ID="Image2" runat="server" ImageUrl ="~/images/hot.gif"  />
                    </td>
                </tr>
                <tr>
                    <td>
                        M&atilde; s&#7843;n ph&#7849;m:
                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("masp") %>'></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        T&ecirc;n s&#7843;n ph&#7849;m:
                        <asp:Label ID="Label2" runat="server" Text='<%# Eval("tensp") %>'></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        &#272;&#417;n gi&aacute;:
                        <asp:Label ID="Label3" runat="server" Text='<%# Eval("dongia") %>'></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        Tr&#7841;ng th&aacute;i:
                        <asp:Label ID="Label4" runat="server" Text='<%# Eval("trangthai") %>'></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        
                        
                        
                        <asp:HyperLink ID="HyperLink1" runat="server" ImageUrl="~/images/chitiet1.gif" 
                        NavigateUrl='<%# "~/chitietsp.aspx?masp=" +Eval("masp") %>'>HyperLink</asp:HyperLink>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:HyperLink ID="HyperLink2" runat="server" ImageUrl="~/images/datmua1.gif"
                         NavigateUrl='<%# "~/giohang.aspx?masp=" +Eval("masp") %>'>HyperLink</asp:HyperLink>
                        
                        
                        
                    </td>
                </tr>
            </table>
            <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
                ConnectionString="<%$ ConnectionStrings:QLthoitrang ConnectionString %>" 
                SelectCommand="SELECT * FROM [SanPham]"></asp:SqlDataSource>
            </div>
            
        </ItemTemplate>
    </asp:DataList>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:QLthoitrang ConnectionString %>" 
        SelectCommand="SELECT * FROM [SanPham]"></asp:SqlDataSource>
    <cc1:CollectionPager ID="CollectionPager1" runat="server">
    </cc1:CollectionPager>

</asp:Content>

